#include "window.h"
#include <QTextCodec>

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    QRect rect = QApplication::desktop()->availableGeometry();
    int w = rect.width()*0.6;
    int h = rect.height()*0.6;
    QGraphicsScene scene(0, 0, w, h);
    int x = (rect.width() - w) / 2;
    int y = (rect.height() - h) / 2;

    Window window(&scene);
    window.move(x,y);
#if defined(Q_OS_SYMBIAN)
    window.showMaximized();
#else
    window.show();
#endif
    return app.exec();
}
